package homework;

public class Narcissus {
	public static void main(String[] args) {
		// 求3位  100~1000
		for (int i = 100; i < 1000; i++) {
			int single = i % 10;
			int ten = i / 10 % 10;
			int hundred = i / 100;
			
			if (single * single * single + ten * ten * ten + hundred * hundred * hundred == i) {
				System.out.println(i);
			}
		}
	}
}
